package com.srit.map.web.action;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.srit.core.struts2.action.CrudAction;
import com.srit.map.business.bean.Company;
import com.srit.map.business.bean.CompanySearch;
import com.srit.map.business.service.MapService;

/**
 * @author chenxiling
 *
 */
public class MapAction extends CrudAction{
	private Company  company= new Company();
	@Autowired(required = true)
	MapService mapService;

	@Override
	public Object getModel() {
		// TODO Auto-generated method stub
		return company;
	}
	
	public String initMap (){
		return "success";
	}
	
	//地图展示
	public String page(){
		CompanySearch companySearch = new CompanySearch();
		List list = mapService.searchCompany(companySearch);
		page.setList(list);
		return "jump";
	}
}
